
#import <appkit/appkit.h>
#import "Eps.h"

@implementation Eps

id anEpsImage;

+initialize
{
	char buf[MAXPATHLEN + 1];
	id aBundle;

	aBundle = [NXBundle bundleForClass:[self class]];
	if([aBundle getPath:buf forResource:"Eps" ofType:"eps"]){
		anEpsImage = [[[NXImage alloc] initFromFile:buf] setScalable:YES];
	}
	return self;
}

-drawShape
{	
	[anEpsImage setSize:&bbox.size];
	[anEpsImage composite:NX_SOVER toPoint:&bbox.origin];
	return self;
}

@end
